package com.example.hy2110szyx.service;

import com.example.hy2110szyx.entity.Customer;
import com.example.hy2110szyx.entity.FlightInfo;
import com.example.hy2110szyx.vo.PageVo;
import com.github.pagehelper.Page;

import java.util.List;

public interface CustomerService {

    /**
     * 根據身份證查詢顧客信息
     *
     * @param identity
     * @return
     */
    Customer queryByIdentity(String identity);

    /**
     * 根据id顧客
     * @return
     */
    List<Customer> queryAll();

    /**
     * 根據客戶編號查詢客戶
     * @param cno
     * @return
     */

   Customer queryByCno(String cno);

    /**
     * 根據電話查詢客戶
     * @param phone
     * @return
     */
    Customer queryByPhone(String phone);

    /**
     * 根据条件分页查询所有旅客信息
     * @param pageVo
     * @return
     */
    Page<Customer> queryAllCustomersForPage(PageVo<Customer> pageVo);


    void deleteSomeById(Integer[] ids);

    void insertCustomer(Customer customer);

    void updateOneCustomer(Customer customer);

}
